package com.hawthorn.admin.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.repository.provider.SysJobSqlProvider;
import com.hawthorn.platform.model.po.SysJobPO;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>todo sys_job Mapper类</p>
 * @author: andy.ten@tom.com | xukaixing@hotmail.com
 * @created: 2022/8/6 09:18
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
@Repository
public interface SysJobMapper extends DBMapper<SysJobPO>
{
  @SelectProvider(SysJobSqlProvider.class)
  IPage<Map<String, Object>> findJobs(Page<Map<String, Object>> page, String conditions);

  @SelectProvider(SysJobSqlProvider.class)
  IPage<Map<String, Object>> findJobLogsById(Page<Map<String, Object>> page, String conditions);

  @SelectProvider(SysJobSqlProvider.class)
  Integer findJobByName(String jobName);

}
